package com.thesis.dao;

import com.github.pagehelper.Page;
import com.thesis.entity.Food;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FoodMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Food Food);

    int insertSelective(Food Food);

    Food selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Food Food);

    int updateByPrimaryKey(Food Food);

    List<Food> findPageList(@Param("Food") Food Food);

    Page<Food> findPageListByVague(@Param("queryParam") Food queryParam, @Param("vagueParam") String vagueParam);

    Integer deleteBatchByIds(List<Integer> idList);

    List<Food> selectAll();

    List<Food> selectClassListByProId(@Param("proId") Long proId);

    List<Map<String, Object>> findAllByTime();
}
